/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package tracker.android.com;

import org.eclipse.emf.common.util.EList;
import tracker.android.nativelib.BluetoothAdaptor;
import tracker.android.nativelib.BluetoothSocket;
import tracker.android.nativelib.Context;
import tracker.android.nativelib.Handler;


/**
 * <!-- begin-user-doc -->
 * A representation of the model object '<em><b>Bluetooth Service</b></em>'.
 * <!-- end-user-doc -->
 *
 * <p>
 * The following features are supported:
 * <ul>
 *   <li>{@link tracker.android.com.BluetoothService#getNAME <em>NAME</em>}</li>
 *   <li>{@link tracker.android.com.BluetoothService#getTAG <em>TAG</em>}</li>
 *   <li>{@link tracker.android.com.BluetoothService#getMAdaptor <em>MAdaptor</em>}</li>
 *   <li>{@link tracker.android.com.BluetoothService#getMHandler <em>MHandler</em>}</li>
 *   <li>{@link tracker.android.com.BluetoothService#getMState <em>MState</em>}</li>
 * </ul>
 * </p>
 *
 * @see tracker.android.com.ComPackage#getBluetoothService()
 * @model
 * @generated
 */
public interface BluetoothService extends ICommService {

	/**
	 * Returns the value of the '<em><b>NAME</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>NAME</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>NAME</em>' attribute.
	 * @see #setNAME(String)
	 * @see tracker.android.com.ComPackage#getBluetoothService_NAME()
	 * @model required="true" ordered="false"
	 * @generated
	 */
	String getNAME();

	/**
	 * Sets the value of the '{@link tracker.android.com.BluetoothService#getNAME <em>NAME</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>NAME</em>' attribute.
	 * @see #getNAME()
	 * @generated
	 */
	void setNAME(String value);

	/**
	 * Returns the value of the '<em><b>TAG</b></em>' attribute.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>TAG</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>TAG</em>' attribute.
	 * @see #setTAG(String)
	 * @see tracker.android.com.ComPackage#getBluetoothService_TAG()
	 * @model required="true" ordered="false"
	 * @generated
	 */
	String getTAG();

	/**
	 * Sets the value of the '{@link tracker.android.com.BluetoothService#getTAG <em>TAG</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>TAG</em>' attribute.
	 * @see #getTAG()
	 * @generated
	 */
	void setTAG(String value);

	/**
	 * Returns the value of the '<em><b>MAdaptor</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>MAdaptor</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>MAdaptor</em>' reference.
	 * @see #setMAdaptor(BluetoothAdaptor)
	 * @see tracker.android.com.ComPackage#getBluetoothService_MAdaptor()
	 * @model required="true" ordered="false"
	 * @generated
	 */
	BluetoothAdaptor getMAdaptor();

	/**
	 * Sets the value of the '{@link tracker.android.com.BluetoothService#getMAdaptor <em>MAdaptor</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>MAdaptor</em>' reference.
	 * @see #getMAdaptor()
	 * @generated
	 */
	void setMAdaptor(BluetoothAdaptor value);

	/**
	 * Returns the value of the '<em><b>MHandler</b></em>' reference.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>MHandler</em>' reference isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>MHandler</em>' reference.
	 * @see #setMHandler(Handler)
	 * @see tracker.android.com.ComPackage#getBluetoothService_MHandler()
	 * @model required="true" ordered="false"
	 * @generated
	 */
	Handler getMHandler();

	/**
	 * Sets the value of the '{@link tracker.android.com.BluetoothService#getMHandler <em>MHandler</em>}' reference.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>MHandler</em>' reference.
	 * @see #getMHandler()
	 * @generated
	 */
	void setMHandler(Handler value);

	/**
	 * Returns the value of the '<em><b>MState</b></em>' attribute.
	 * The literals are from the enumeration {@link tracker.android.com.State}.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of the '<em>MState</em>' attribute isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @return the value of the '<em>MState</em>' attribute.
	 * @see tracker.android.com.State
	 * @see #setMState(State)
	 * @see tracker.android.com.ComPackage#getBluetoothService_MState()
	 * @model required="true" ordered="false"
	 * @generated
	 */
	State getMState();

	/**
	 * Sets the value of the '{@link tracker.android.com.BluetoothService#getMState <em>MState</em>}' attribute.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @param value the new value of the '<em>MState</em>' attribute.
	 * @see tracker.android.com.State
	 * @see #getMState()
	 * @generated
	 */
	void setMState(State value);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model contextRequired="true" contextOrdered="false" handlerRequired="true" handlerOrdered="false"
	 * @generated
	 */
	void BluetoothService(Context context, Handler handler);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model deviceRequired="true" deviceOrdered="false"
	 * @generated
	 */
	void connect(BluetoothDevice device);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model socketRequired="true" socketOrdered="false" deviceRequired="true" deviceOrdered="false"
	 * @generated
	 */
	void connected(BluetoothSocket socket, BluetoothDevice device);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void start();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void stop();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model kind="operation" required="true" ordered="false"
	 * @generated
	 */
	int getState();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void connectionFailed();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model stateRequired="true" stateOrdered="false"
	 * @generated
	 */
	void setState(int state);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model outMany="true" outOrdered="false" sizeRequired="true" sizeOrdered="false"
	 * @generated
	 */
	void write(EList<Byte> out, int size);

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model
	 * @generated
	 */
	void connectionLost();

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @model outMany="true" outOrdered="false" sizeRequired="true" sizeOrdered="false" senderThreadRequired="true" senderThreadOrdered="false"
	 * @generated
	 */
	void write(EList<Byte> out, int size, tracker.android.sens.Thread senderThread);
} // BluetoothService
